using UnityEngine;
using System.Collections;

public delegate void PassMediumData (ref SideScrollExternData _sedNewData);


public class ExternalTimeAndMedController : ExternalTimeController
{
	private PassMediumData 	m_dChangeMediumDataDelegate;
	
	public void SetDelegateToChangeMedium(PassMediumData _dChangeMediumDataDelegate)
	{
		m_dChangeMediumDataDelegate = _dChangeMediumDataDelegate;
	}
	
	public void ChangeMediumData(ref SideScrollExternData _sedNewData)
	{
		m_dChangeMediumDataDelegate(ref _sedNewData);
	}
	
	public void GetNewMediumFromTrigger(TriggMovementExternalData _tedTrigger)
	{
		ChangeMediumData(ref _tedTrigger.m_sedMediumData);
	}
}

